home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000047_icon-group-sender _Mon Nov 4 12:43:56 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  18KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 4 Nov 1996 16:25:23 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 4 Nov 1996 12:43:56 -0700
  4. From: icon-project@cs.arizona.edu
  5. Message-Id: <55lh1s$i2v@cheltenham.CS.Arizona.EDU>
  6. Organization: University of Arizona CS Department, Tucson AZ
  7. Sender: icon-group-request@cs.arizona.edu
  8. Reply-To: icon-project@cs.arizona.edu
  9. Subject: Icon Programming Language FAQ
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. Archive-name: comp-lang-icon-faq
  13. Posting-Frequency: monthly
  14.  
  15.  
  16.  
  17. Frequently Asked Questions About The Icon Programming Language
  18.  
  19. Last updated: February 16, 1996
  20.  
  21. This FAQ answers various questions about the Icon programming language, ranging
  22. from what it is to how you can get it. The master copy of this FAQ is the Web
  23. page http://www.cs.arizona.edu/icon/www/faq.html. Other on-line documentation
  24. is available via the main Icon page at http://www.cs.arizona.edu/icon/www/.
  25.  
  26. This FAQ is written by Ralph Griswold and Gregg Townsend, with help from Cliff
  27. Hathaway, Clint Jeffery, and Bob Alexander.
  28.  
  29.    * 1. What is Icon?
  30.    * 2. What is Icon good for?
  31.    * 3. Where did Icon come from?
  32.    * 4. What does "Icon" stand for?
  33.    * 5. On what computers does Icon run?
  34.    * 6. Who did all these implementations?
  35.    * 7. Are there other implementations in the works?
  36.    * 8. What about different versions of Icon?
  37.    * 9. Which implementations of Icon have graphics/window capabilities?
  38.    * 10. Where can I get Icon?
  39.    * 11. Where can I get documentation about Icon?
  40.    * 12. How do I get started with Icon?
  41.    * 13. What is the Icon Project?
  42.    * 14. Where can I find examples of Icon programs?
  43.    * 15. What is Idol?
  44.    * 16. How often is material in Icon's FTP area updated?
  45.    * 17. How do I stay up to date with what's going on with Icon?
  46.    * 18. Is there a users' group for Icon?
  47.    * 19. How do I get technical support?
  48.    * 20. Should I use the Icon interpreter or compiler?
  49.    * 21. What do I need to run the interpreter?
  50.    * 22. What do I need to run the compiler?
  51.    * 23. Can I build my own implementation of Icon for a new platform?
  52.  
  53. -------------------------------------------------------------------------------
  54.  
  55. 1. What is Icon?
  56.  
  57. Icon is a very high level general-purpose programming language with extensive
  58. features for processing strings (text) and data structures. Icon is an
  59. imperative, procedural language with a syntax that is reminiscent of C and
  60. Pascal, but its semantics are at a much higher level than those languages.
  61.  
  62. Icon has a novel expression-evaluation mechanism that integrates goal-directed
  63. evaluation and backtracking with conventional control structures. It has a
  64. string scanning facility for pattern matching that avoids the tedious details
  65. usually associated with analyzing strings. Icon's built-in data structures
  66. include sets and tables with associative lookup, lists that can be used as
  67. vectors or stacks and queues, and records.
  68.  
  69. Icon is a strongly, though not statically, typed language. It provides
  70. transparent automatic type conversion. For example, if an integer is used in an
  71. operation that requires a string, the integer is automatically converted to a
  72. string.
  73.  
  74. Several implementations of Icon have high-level graphics facilities with an
  75. easily programmed window interface.
  76.  
  77. Icon manages storage automatically. Objects are created as needed during
  78. program execution and space is reclaimed by garbage collection as needed. The
  79. sizes of strings and data structures are limited only by the amount of
  80. available memory.
  81.  
  82. 2. What is Icon good for?
  83.  
  84. As a general-purpose programming language with a large computational
  85. repertoire, Icon can be used for most programming tasks. It's at its best when
  86. used as a prototyping tool, for processing text, and when ease of programming
  87. is needed for experimental and research applications.
  88.  
  89. Paradoxically, Icon is used most often for short, one-shot tasks and for very
  90. complex applications.
  91.  
  92. Icon is designed to make programming easy; it emphasizes the value of
  93. programmer's time and the importance of getting programs to work quickly. This
  94. explains its usefulness for prototyping as well as the apparent paradox of
  95. applicability to simple and complex applications.
  96.  
  97. 3. Where did Icon come from?
  98.  
  99. Icon is the latest in a series of high-level programming languages designed to
  100. facilitate programming tasks involving strings and structures. The original
  101. language, SNOBOL, was developed at Bell Telephone Laboratories in the early
  102. 60s. SNOBOL evolved into SNOBOL4, which is still in use. Subsequent languages
  103. were developed at The University of Arizona with support from the National
  104. Science Foundation.
  105.  
  106. Incidentally, Icon bears little physical resemblance to SNOBOL4, although it
  107. has similar objectives and many similar capabilities.
  108.  
  109. 4. What does "Icon" stand for?
  110.  
  111. The name Icon (which is not spelled ICON) is not an acronym nor does it stand
  112. for anything in particular, although the word "iconoclastic" was mentioned at
  113. the time the name was chosen. The name predates the now common use of "icon" to
  114. refer to small images used in graphical user interfaces. This latter usage
  115. sometimes causes persons to think mistakenly that Icon is designed to create or
  116. manipulate icons. There's not much that can be done about this.
  117.  
  118. 5. On what computers does Icon run?
  119.  
  120. The implementation of Icon is highly portable. Version 9 runs on UNIX, MS-DOS,
  121. Macintosh/MPW, VAX/VMS, and the Acorn Archimedes. There are older versions for
  122. the Amiga, the Atari ST, IBM CMS and MVS, the Macintosh, and OS/2.
  123.  
  124. Icon programs also are highly portable. Most Icon programs can run on any
  125. platform that supports Icon.
  126.  
  127. 6. Who did all these implementations?
  128.  
  129. The original implementation of Icon for UNIX was done at The University of
  130. Arizona. Most of the other implementations originally were done by volunteers
  131. scattered around the world.
  132.  
  133. It's worth noting that all implementations of Icon are based on the same source
  134. code, which is written in C. This contributes to the portability of Icon
  135. itself, as well as to the portability of programs written in Icon.
  136.  
  137. 7. Are there other implementations in the works?
  138.  
  139. Work is constantly underway on implementations of Icon for new platforms.
  140. Present projects include Microsoft Windows, Windows NT, and a new Macintosh
  141. implementation.
  142.  
  143. 8. What about different versions of Icon?
  144.  
  145. Icon has evolved through a series of versions with improved and extended
  146. capabilities. The latest major version number is 9. This version includes
  147. recent changes and additions, notably in the graphics area, and runs on UNIX,
  148. MS-DOS, Macintosh/MPW, VAX/VMS, and Acorn Archimedes. Other implementations
  149. presently are at Version 8. Almost all programs that run under Version 8 and
  150. that do not use graphics will run under Version 9.
  151.  
  152. 9. Which implementations of Icon have graphics/window capabilities?
  153.  
  154. Icon's graphics facilities presently are supported on UNIX and VAX/VMS. The
  155. Windows NT and Microsoft Windows implementations that support Icon's graphics
  156. facilities are in beta testing. A Macintosh implementation to support graphics
  157. also is in the works.
  158.  
  159. 10. Where can I get Icon?
  160.  
  161. Icon is available via anonymous FTP and on the Web. For FTP, use
  162.  
  163.      ftp.cs.arizona.edu
  164.  
  165. and cd /icon.
  166.  
  167. For the Web, use
  168.  
  169.      http://www.cs.arizona.edu/icon/www/
  170.  
  171. and check out the links there.
  172.  
  173. For FTP, the directory /icon/binaries contains executable versions of Icon for
  174. several systems, including several popular UNIX platforms. The directory
  175. /icon/packages contains source code, test programs, related material, and, most
  176. cases, executable binaries as well. All directories have README files with
  177. additional information.
  178.  
  179. Icon also is available on diskettes for prices ranging from $15 to $25.
  180. Contact:
  181.  
  182.      Icon Project
  183.      Department of Computer Science
  184.      The University of Arizona
  185.      P.O. Box 210077
  186.      Tucson, AZ 85721-0077
  187.  
  188.      520-621-6613 (voice)
  189.      520-621-4246 (fax)
  190.  
  191.      icon-orders@cs.arizona.edu
  192.  
  193. Purchases can be made by credit card (MasterCard or Visa), postal money order,
  194. or check drawn on a bank with a branch in the United States and made payable to
  195. The University of Arizona.
  196.  
  197. Icon is available on CD-ROM from Prime Time Freeware (http://www.ptf.com/,
  198. 408-433-9662). Contact them for details.
  199.  
  200. 11. Where can I get documentation about Icon?
  201.  
  202. The definitive work on Icon is the book
  203.  
  204.      The Icon Programming Language, Griswold and Griswold, second edition,
  205.      Prentice Hall, 1990, 368 pages, ISBN 0-13-447889-4.
  206.  
  207. This book is a complete description and reference manual for Version 8 of Icon.
  208. A technical report describes changes since that version.
  209.  
  210. There also is a book on the implementation of Icon:
  211.  
  212.      The Implementation of the Icon Programming Language, Griswold and
  213.      Griswold, Princeton University Press, 1986, 336 pages, ISBN
  214.      0-691-08431-9.
  215.  
  216. This book describes the implementation as of Version 6 of Icon. Although the
  217. implementation has changed considerably since then, the basic structure is the
  218. same. Technical reports describing recent implementation changes are included
  219. with copies of the book purchased from the Icon Project.
  220.  
  221. These books are available from the Icon Project.
  222.  
  223. Additional documentation is available via FTP in /icon/doc. Notable documents
  224. are:
  225.  
  226.    * IPD266: An Overview of Icon (text, PostScript, PDF)
  227.    * IPD268: Graphics/window facilities (PostScript, PDF)
  228.    * IPD267: Version 9.1 of Icon (text, PostScript, PDF)
  229.  
  230. There are manual pages for Unix systems, and more documentation under the Icon
  231. web page, but there is no complete on-line documentation.
  232.  
  233. The Icon Newsletter, which includes topical material about Icon and a list of
  234. material available from the Icon Project, is published three times a year and
  235. is available on the Web. There is a subscription fee for an on-going
  236. subscription by postal mail. The Icon Analyst, a technically-oriented
  237. newsletter that features articles about programming, is published six times a
  238. year. There is a subscription fee for the Analyst. A sample copy is available
  239. on the Web.
  240.  
  241. All back issues of both newsletters are available for purchase.
  242.  
  243. 12. How do I get started with Icon?
  244.  
  245. If you're running under Unix, check first in the /icon/binaries/unix FTP
  246. directory to see if there is a "starter kit" for your platform. Starter kits
  247. include executables, documentation, and other material.
  248.  
  249. Otherwise, go to the /icon/packages directory and get the appropriate package.
  250. Packages include documentation and other material; see the README file in that
  251. directory for more details. There is a Unix package for platforms that lack
  252. starter kits.
  253.  
  254. If the non-Unix package you pick up does not contain executable files, check
  255. /icon/binaries. You also may want to get the overview of Icon:
  256. /icon/doc/ipd266.doc or ipd266.ps.Z. You'll find pointers to other documents of
  257. interest in the package you pick up.
  258.  
  259. 13. What is the Icon Project?
  260.  
  261. The Icon Project is a name used by the group that develops, implements,
  262. distributes, and supports the Icon programming language.
  263.  
  264. The Icon Project is not commercial organization. It derives support from The
  265. University of Arizona, revenue from the sale of program material and
  266. documentation, and user contributions.
  267.  
  268. 14. Where can I find examples of Icon programs?
  269.  
  270. There is a large program library for Icon. It is an excellent resource for both
  271. new and experienced programmers. The library contains numerous examples of how
  272. to do things with Icon. The library also provides many useful applications, as
  273. well as hundreds of procedures that supplement Icon's built-in repertoire.
  274.  
  275. The library, like other Icon material, is available via FTP in /icon/library
  276. and on diskettes from the Icon Project.
  277.  
  278. 15. What is Idol?
  279.  
  280. Idol is an object-oriented extension to Icon that provides concepts such as
  281. classes and multiple inheritance. Idol is written in Idol and is distributed as
  282. part of the Icon program library. Idol runs on almost all of the platforms that
  283. support Icon.
  284.  
  285. Additional Idol information is available from Clint Jeffery,
  286.  
  287.      jeffery@ringer.cs.utsa.edu.
  288.  
  289. 16. How often is material in Icon's FTP area updated?
  290.  
  291. New material is added when it's available. Established implementations usually
  292. are updated only when there's a major new release. This typically is every year
  293. or two. The Icon program library is updated on a similar schedule.
  294.  
  295. 17. How do I stay up to date with what's going on with Icon?
  296.  
  297. The best way to find out about developments related to Icon is to read the Icon
  298. Newsletter.
  299.  
  300. You can stay up to date on the source code, which is changed much more
  301. frequently than the version on FTP is updated, by subscribing to the source
  302. update service, which provides a new version about twice a year.
  303.  
  304. There also is a subscription service for updates to the Icon program library,
  305. which provides new material about twice a year.
  306.  
  307. There is on-line information about subscribing to these services.
  308.  
  309. 18. Is there a users' group for Icon?
  310.  
  311. There is no official Icon users' group. The Icon Project maintains an
  312. electronic mailing list,
  313.  
  314.      icon-group@cs.arizona.edu.
  315.  
  316. Mail sent to this address is forwarded to subscribers. To subscribe (or
  317. unsubscribe), send a message to
  318.  
  319.      icon-group-request@cs.arizona.edu.
  320.  
  321. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  322. newsgroup for discussing issues related to Icon. The gateway, which exchanges
  323. messages between the two systems, is imperfect and not under the control of the
  324. Icon Project.
  325.  
  326. The newsgroup generally provides faster response than the mailing list, is less
  327. intrusive, but sometimes suffers from inappropriate postings. The Icon Project
  328. usually sends messages of interest to the Icon community to icon-group.
  329.  
  330. 19. How do I get technical support?
  331.  
  332. The Icon Project is not a commercial organization, and its capacity for
  333. providing technical support is limited. Please use the appropriate resource
  334. when you need assistance:
  335.  
  336. Ordering Icon Material
  337.  
  338. mail:   Icon Project
  339.         Department of Computer Science
  340.         The University of Arizona
  341.         P.O. Box 210077
  342.         Tucson, Arizona 85721-0077
  343.         U.S.A.
  344.  
  345. fax:    (520) 621-4246
  346. voice:  (520) 621-6613
  347. e-mail: icon-orders@cs.arizona.edu
  348.  
  349. Getting On-Line Information and Material
  350.  
  351. web:    http://www.cs.arizona.edu/icon/www/
  352. ftp:    ftp.cs.arizona.edu (cd /icon)
  353. e-mail: ftpmail@cs.arizona.edu
  354.  
  355. Send a message consisting of the word help.
  356.  
  357. Assistance with Installing Icon
  358.  
  359. e-mail: icon-project@cs.arizona.edu
  360.  
  361. Bug Reports
  362.  
  363. e-mail: icon-project@cs.arizona.edu
  364. fax:    (520) 621-4246
  365.  
  366. Assistance with Programming Problems
  367.  
  368. e-mail: icon-group@cs.arizona.edu
  369. news:   comp.lang.icon
  370.  
  371. Uploading Files
  372.  
  373. ftp:    ftp.cs.arizona.edu (cd /incoming)
  374.  
  375. After uploading, send e-mail to icon-project@cs.arizona.edu.
  376.  
  377. 20. Should I use the Icon interpreter or compiler?
  378.  
  379. As the question indicates, there are two forms of the implementation of Icon,
  380. an interpreter and a compiler. The interpreter gets a program into execution
  381. quickly and is recommended for program development, debugging, and most
  382. production situations. The compiler produces code that executes somewhat faster
  383. than interpreted code (a factor of 2 or 3 is typical), but the compiler
  384. requires a large amount of resources and is very slow in producing executable
  385. code. It also requires additional time and effort at installation time. The
  386. compiler is recommended only for small programs where execution speed is the
  387. paramount concern.
  388.  
  389. 21. What do I need to run the interpreter?
  390.  
  391. The Icon interpreter will run on most computers. Under MS-DOS, the Icon
  392. interpreter needs 500 KB of application RAM to work well.
  393.  
  394. 22. What do I need to run the compiler?
  395.  
  396. The Icon compiler is another matter. It requires a C compiler, a fast CPU for
  397. tolerable compilation times, a considerable amount of disk space, and a lot of
  398. memory -- at least several megabytes.
  399.  
  400. The Icon compiler generates C code, which must then be compiled to produce an
  401. executable program. The flexibility that Icon provides to programmers makes
  402. compilation technically difficult and the process requires a large amount of
  403. memory. The C code it produces is voluminous and stresses the most robust C
  404. compilers.
  405.  
  406. Generally speaking, the Icon compiler is practical for platforms in the
  407. workstation class but not for personal computers.
  408.  
  409. 23. Can I build my own implementation of Icon for a new platform?
  410.  
  411. As mentioned above, Icon is written in C and the source code is available. The
  412. existing implementations are testament to its portability. (A small amount of
  413. assembly-language code is required for a context switch, but this is only
  414. needed for an optional feature -- co-expressions -- that can be disabled
  415. without affecting most of Icon.)
  416.  
  417. New ports involve platform-specific configuration parameters and, in some
  418. cases, platform-specific code. The feasibility of a new port and the amount of
  419. work it may take depends on the platform -- its architecture, its C compiler,
  420. and its environment.
  421.  
  422. Ports to new Unix platforms generally are easy, although novel architectures
  423. may present problems. Ports to new operating systems generally are more
  424. difficult, especially if Icon's graphics facilities are implemented.
  425.  
  426. The Icon Project provides what help it can with new ports. In return, it asks
  427. that code related to the port to be returned to the Icon Project for inclusion
  428. in future versions of the source code for Icon. This makes the new port
  429. available to others as well as to the porter when Icon is updated.
  430.